{% extends "common/templates/base_nav.html" %}

{% block contents %}
<h2>
  <fb:intl>Slaps given</fb:intl>
</h2>
<p>
  <fb:intl>Here are shown the victims.</fb:intl>
</p>
{% if entries_s %}
{% for entry in entries_s %}
<div class="comment">
  <div class="picture"> 
    <fb:profile_pic uid="{{ entry.target.uid }}" size="square"></fb:profile_pic>
  </div> 
  <fb:name uid="{{ entry.target.uid }}" useyou="false" />, 
  <span class="actor-status">{{ entry.target.status }}</span>
  <p>
    {{ entry.target.count_sended }} <fb:intl>slaps given, and </fb:intl>
    {{ entry.target.count_received }} <fb:intl>received</fb:intl>.
  </p>
  <div class="more">
    <a href="{{ FACEBOOK_APP_ROOT }}/actor/{{ entry.target.uid }}/">
			<fb:intl>more information about him</fb:intl>
    </a>
  </div>
  <div style="clear:both"></div>
</div>
{% endfor %}
{% else %}
<div class="fbinfobox">
  <fb:name uid="{{ request.user.uid }}" useyou="false"/> <fb:intl>has only good friends ! ...pfff</fb:intl>
</div>
{% endif %}

<div style="clear:both"></div><br />

<h2>
  <fb:intl>Slaps received</fb:intl>
</h2>
<p>
  <fb:intl>Good or a bad friend ?</fb:intl>
</p>
{% if entries_r %}
{% for entry in entries_r %}
<div class="comment">
	<div class="picture"> 
		<fb:profile_pic uid="{{ entry.owner.uid }}" size="square"></fb:profile_pic>
	</div> 
	<fb:name uid="{{ entry.owner.uid }}" useyou="false" />, 
	<span class="actor-status">{{ entry.owner.status }}</span>
	<p>
		{{ entry.owner.count_sended }} <fb:intl>slaps given, and </fb:intl>
		{{ entry.owner.count_received }} <fb:intl>received</fb:intl>.
	</p>
	<div class="more">
		<a href="{{ FACEBOOK_APP_ROOT }}/actor/{{ entry.owner.uid }}/">
			<fb:intl>more information about him</fb:intl>
		</a>
	</div>
	<div style="clear:both"></div>
</div>
{% endfor %}
{% else %}
<div class="fbinfobox">
	<fb:name uid="{{ request.user.uid }}" useyou="false"/> <fb:intl>is a good friend.</fb:intl>
</div>
{% endif %}

<div style="clear:both"></div>
{% endblock %}

